package cn.edu.cug.cs.gtl.docsrv.txt;

import cn.edu.cug.cs.gtl.common.Pair;
import cn.edu.cug.cs.gtl.docsrv.doc.DocManager;
import cn.edu.cug.cs.gtl.mybatis.Session;
import cn.edu.cug.cs.gtl.mybatis.mapper.doc.DocAll;
import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtAll;
import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtFile;
import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtItem;
import cn.edu.cug.cs.gtl.protos.Document;
import cn.edu.cug.cs.gtl.protos.TimeValue;
import org.locationtech.jts.geom.Envelope;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 基于Solr实现的文本数据管理器
 */
public class SolrTxtManager extends TxtManager{

    /**
     * 构造函数
     *
     * @param session
     */
    public SolrTxtManager(Session session) {
        super(session);
    }

    @Override
    public boolean insert(TxtItem txtItem, TxtFile txtFile) {
        return false;
    }

    @Override
    public boolean insert(TxtAll txtAll) {
        return false;
    }

    @Override
    public boolean insert(String localDir) {
        return false;
    }

    @Override
    public boolean delete(TxtItem txtItem) {
        return false;
    }

    @Override
    public boolean delete(TxtAll txtAll) {
        return false;
    }

    @Override
    public boolean update(TxtItem txtItem, TxtFile txtFile) {
        return false;
    }

    @Override
    public boolean update(TxtAll txtAll) {
        return false;
    }

    @Override
    public TxtAll queryByInternalId(BigDecimal txtInternalId) {
        return null;
    }

    @Override
    public List<TxtAll> queryByEnTitle(String txtEnTitle) {
        return null;
    }

    @Override
    public List<TxtAll> queryByComment(String txtCnTitle) {
        return null;
    }

    @Override
    public List<TxtAll> queryByType(String txtType) {
        return null;
    }

    @Override
    public List<TxtAll> queryByAppendDate(TimeValue begin, TimeValue end) {
        return null;
    }

    @Override
    public List<Pair<BigDecimal, Envelope>> queryAllEnvelopes() {
        return null;
    }

    @Override
    public List<TxtAll> query(Map<String, Object> parameters) {
        return null;
    }

//    @Override
//    public BlockQuerier getBlockQuerier() {
//        return null;
//    }

    @Override
    public List<BigDecimal> getTxtInternalIdsByCatalogInternalId(BigDecimal catalogId) {
        return null;
    }


}
